package com.wish.g04.financial.controller;

import java.util.List;

import com.wish.g04.base.dto.FinancingApplicationDTO;
import com.wish.g04.base.vo.FinancingApplicationVO;
import com.wish.g04.common.core.web.controller.BaseController;
import com.wish.g04.common.core.web.page.TableDataInfo;
import com.wish.g04.financial.service.IRentInstallmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wish.g04.common.security.annotation.PreAuthorize;

/**
 * 融资申请查询Controller
 * 
 * @author Z-7
 * @date 2022-05-30
 */
@RestController
@RequestMapping("/installment")
public class JrFinancingApplicationtController extends BaseController
{
   @Autowired
   private IRentInstallmentService iRentInstallmentService;

    /**
     * 查询融资申请查询列表
     */
    @PreAuthorize(hasPermi = "financing:installment:list")
    @GetMapping("/list")
    public TableDataInfo list(FinancingApplicationDTO financingApplicationDTO)
    {
        startPage();
        List<FinancingApplicationVO> list = iRentInstallmentService.getFinancingApplicationList(financingApplicationDTO);
        return getDataTable(list);
    }
}
